package com.zbs.framework.swagger.utils.logs;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * @description: ISysOperateLogServiceImpl
 * @author: Zbs
 * @createTime: 2021/4/2 14:55
 */
@Slf4j
@Component
public class SwaggerISysOperateLogEventListener {

    @Async
    @EventListener(SysOperateLog.class)
    public void insertOperateLog(SysOperateLog sysOperateLog) {
        log.info("{}",sysOperateLog);
    }

}